﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UMLTouch.Domain.ClassDiagram.Items;
using UMLTouch.Core.ViewModel;
using UMLTouch.Core.UI;

namespace UMLTouch.Domain.ClassDiagram.ViewModels
{
    public class EntityViewModel : DiagramItemViewModel
    {
        EntityItem _item;

        public override IDiagramItem Source
        {
            get
            {
                return _item;
            }
            set
            {
                _item = value as EntityItem;
            }
        }

        public EntityViewModel(EntityItem item)
            :base(item)
        {
            
        }

        public EntityViewModel()
            :base(new EntityItem())
        {
            
        }

    }
}
